package cn.panda.edu.service;

import cn.panda.edu.model.Exam;
import cn.panda.edu.model.ExamOrder;
import com.github.pagehelper.PageInfo;

/**
 * 类描述：考试信息Service
 * 
 * @author: 陈飞帆 @date： 2018-01-16 下午12:07:26
 */
public interface ExamService {
	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 根据ID删除考试信息
	 * @param examId
	 * @return int
	 */
	int deleteByPrimaryKey(Integer examId);
	/**
	 * 
	* @Title: saveExamOrder 
	* @Description: 预约考试，添加预约表信息
	* @param examOrder  
	* void
	 */
	void saveExamOrder(ExamOrder examOrder);

	/**
	 * 
	* @Title: getExamById 
	* @Description: 根据主键查询考试信息
	* @param examId
	* @return  
	* Exam
	 */
	Exam getExamById(Integer examId);
	/**
	 * 
	 * @Title: getAllExam
	 * @Description: 分页得到考试信息
	 * @param pageIndex
	 * @param pageSize
	 * @return PageInfo<Exam>
	 */
	PageInfo<Exam> getAllExam(Integer pageIndex, Integer pageSize);
	/**
	 * 
	* @Title: insert 
	* @Description: 发布考试信息
	* @param record
	* @return  
	* int
	 */
	int insertSelective(Exam record);
}
